<?php
/************************FoxPHP威客系统************************/
/*                                                            */
/*  FoxPHP.Com (C)2006-2016 FoxPHP Inc.                       */
/*  This is NOT a freeware, use is subject to license terms   */
/*  FoxPHP威客系统是商业软件,使用于商业用途请购买授权         */
/*  V3.0 2016.3                                               */
/*  foxphp@aliyun.com                                         */
/*  http://www.foxphp.com                                     */
/*                                                            */
/**************************************************************/

//空间
namespace Space\Controller;
use Think\Controller;
class IndexController extends Controller{
	
	public function GetSpace($uid=0){
		if(!$uid){
			$uid=intval($_GET['uid']);
		}
		
		$model=new \Member\Model\MemberModel();
		$member=$model->UidGetMember($uid);
		if(empty($member['uid'])){
			$this->error('对不起，用户不存！','/',3);
			exit();
		}

		$this->assign('member',$member);
		
		$this->assign('uid',$uid);

		return $uid;       
	}
	
	public function indexAction(){

		$uid=$this->GetSpace();

		$this->display();
	}
	
}